import { request } from '@/utils/http'
import { IuserListResponse, IuserListParams } from './model/userTypes'

//获取会员列表请求
export const reqUserList = ({
  page,
  limit,
  keyword,
  status,
  authStatus,
  createTimeBegin,
  createTimeEnd,
}: IuserListParams) => {
  return request.get<any, IuserListResponse>(`/admin/user/${page}/${limit}`, {
    params: {
      keyword,
      status,
      authStatus,
      createTimeBegin,
      createTimeEnd,
    },
  })
}
